package dao.mapper;

import org.apache.ibatis.annotations.Param;
import vo.OrderState;

import java.util.List;

public interface OrderStateMapper {
    void updateOrderState(@Param("id")int id, @Param("state")String state);

    void updateOrderStateByOrderId(@Param("orderId") int orderId, @Param("state") String state);

    List<OrderState> getAllOrderState();

    void addOrderState(OrderState orderState);

    OrderState selectOrderStateByOrderId(int orderId);

    OrderState getOrderStateById(int id);
}
